﻿using AppGene.DataModel.Samples.TestDatabase;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

namespace AppGene.DataModel.Tests
{
    /// <summary>
    /// 
    /// </summary>
    [TestClass]
    public class DatabaseTest
    {
        private Database defaultDatabase;
        /// <summary>
        /// Gets the default database
        /// </summary>
        public Database DefaultDatabase
        {
            get
            {
                if (defaultDatabase == null)
                {
                    defaultDatabase = new Database();
                }
                return defaultDatabase;
            }
        }

        [TestMethod]
        public void CreateDatabase()
        {
            this.DefaultDatabase.CreateDataModel(typeof(AllLogicalDataType).Assembly);
        }

        [TestMethod]
        public void SimpleTest()
        {
            
            byte[] a={1,2,3,4,5,6,7,8,9,0};

        }
    }
}
